{extends file='email-page.tpl'}
{block name=body}
        感谢您选择澳睿跑——澳洲3-8岁多运动综合教育领导品牌<br><br> 
		{if $bankTransfer eq 1}
        <!-- Bank transfer -->
        {$bankMessage}
        {else}
        <!-- Credit card -->
        {$creditMessage}
        {/if}
        <br>
            
        我们非常激动您的孩子很快就可以加入我们！<br><br> 

        当参加课程时，请提前十分钟到达场地以确保我们的课程按时开始。出于安全和舒适的目的考虑，请确保您的孩子穿着舒适的衣服和胶底运动鞋，同时可以带着一个水杯来课堂。在我们的课程里，我们需要学员穿着特定的衣服（T恤）以展现团队感，如果您已报名但是没有我们的T恤，请在我们的网站放心购买<a href="{$DOMAIN}/products/merchandise/t-shirt">短袖</a>或者<a href="{$DOMAIN}/products/merchandise/long-sleeve-shirt">长袖</a>澳睿跑小学员T恤。<br><br> 

        请确认以下您的订单信息：<br><br> 

        </td>
    </tr>
</table>
<table cellspacing="0" cellpadding="0" border="0" width="100%">
    <tr bgcolor="#f3f3f3">
        <th colspan="2" align="left">订单信息</th>
    </tr>
    <tr>
        <td style="width: 30%">订单号：</td>
        <td>{$payment.payment_transaction_no}</td>
    </tr>
    <tr>
        <td>订单日期：</td>
        <td>{$order.cart_closed_date}</td>
    </tr>
    {if $payment.payment_response_cardscheme}
        <tr>
            <td>支付方式：</td>
            <td>{$payment.payment_response_cardscheme}</td>
        </tr>
    {/if}    
    <tbody>
</table>
<br />
&nbsp;
<br />
<table cellpadding="0" cellspacing="0" border="0"  width="100%">
    <tr bgcolor="#f3f3f3">
        <th colspan="2" align="left">地址信息</th>
    </tr>
    <tr>
        <td style="width: 30%">姓名:</td>
        <td>{$shipping.address_name} {$shipping.address_surname}</td>
    </tr>
    <tr>
        <td>地址：</td>
        <td>{$shipping.address_state}，{$shipping.address_suburb}，{$shipping.address_country}，{$shipping.address_line1} {if $shipping.address_line2}, {$shipping.address_line2}{/if} </td>
    </tr>
    <tr>
        <td>邮编:</td>
        <td>{$shipping.address_postcode}</td>
    </tr>
    <tr>
        <td>电话:</td>
        <td>{$shipping.address_telephone}</td>
    </tr>
    <!-- <tr>
        <td>Shipping instructions:</td>
        <td>{if $payment.payment_shipping_comments}{$payment.payment_shipping_comments}{else}None{/if}</td>
    </tr> -->
</table>
<br />
&nbsp;
<br />
<table cellspacing="0" cellpadding="0" border="0" width="100%">

    <tr bgcolor="#f3f3f3">
        <th style="width: 50%" align="left">商品</th>
        <th style="width: 10%" align="left">数量</th>
        <th style="width: 20%" align="left">单价</th>
        <th style="width: 20%" style="text-align: right">总价</th>
    </tr>
    {foreach $orderItems as $item}
    <tr valign="top" aling="left">
        <td>
            <a href="{$DOMAIN}{$item.url}?utm_source=website&utm_medium=email&utm_campaign=order-confirmation-email">
            {if $item.cartitem_product_gst eq '0'} {assign var=free value=1} *{/if}{$item.cartitem_product_name} 
                {if $item.attributes } 
                {assign var='hasweek' value=0}
                {assign var='hasTrial' value=0}
                {if $item.cartitem_class_flag eq 1 && $item.cartitem_enrolment_type eq 'T' }
                    {assign var='hasTrial' value=1} 
                    <b>[{getdatebyweekdaystartdate weekday=$item.class_weekday startdate=$item.term_start_date weeksafter=$item.attributes.0.cartitem_attr_attr_value_name-1 dateformat='Y/m/d'}]</b>
                {else}
                    <small>
                    {foreach from=$item.attributes item=attr name=attributesarr}
                        {if $attr.cartitem_attr_attribute_name eq 'week'}
                                {assign var='hasweek' value=$hasweek+1}
                        {else}
                             / {$attr.cartitem_attr_attribute_name}: {$attr.cartitem_attr_attr_value_name}
                        {/if} 
                    {/foreach}
                    {if $hasweek gt 0 && $item.cartitem_enrolment_type eq 'S'}
                        / 课程 {$hasweek} 周
                    {/if}
                    </small>
                {/if}
            {/if}
            </a>
        </td>
        <td>{$item.cartitem_quantity}</td>
        <td>{$CURRENCY_SYMBOL}{$item.cartitem_product_price|number_format:2:".":","}</td>
        <td style="text-align: right">{$CURRENCY_SYMBOL}{$item.cartitem_subtotal|number_format:2:".":","}</td>
    </tr>
    {/foreach}
    <tr valign="top">
        <td>&nbsp;</td>
        <td>&nbsp;</td>
        <td><strong>商品总金额</strong></td>
        <td style="text-align: right"><strong>{$CURRENCY_SYMBOL}{$payment.payment_subtotal|number_format:2:".":","}</strong></td>
    </tr>
    {if $payment.payment_discount neq '0.00'}
    <tr valign="top">
        <td>&nbsp;</td>
        <td>&nbsp;</td>
        <td><strong>Sibling discount</strong></td>
        <td style="text-align: right"><strong>{$CURRENCY_SYMBOL}-{$payment.payment_discount|number_format:2:".":","}</strong></td>
    </tr>
    {/if}
    {if $payment.payment_additional neq '0.00'}
    <tr valign="top">
        <td>&nbsp;</td>
        <td>&nbsp;</td>
        <td><strong>{$payment.payment_additional_description}</strong></td>
        <td style="text-align: right"><strong>{$CURRENCY_SYMBOL}{$payment.payment_additional|number_format:2:".":","}</strong></td>
    </tr>
    {/if}
    {if $payment.payment_shipping_fee neq '0.00'}
    <tr valign="top">
        <td>&nbsp;</td>
        <td>&nbsp;</td>
        <td><strong>运费</strong></td>
        <td style="text-align: right"><strong>{$CURRENCY_SYMBOL}{$payment.payment_shipping_fee|number_format:2:".":","}</strong></td>
    </tr>
    {/if}
    <tr valign="top">
        <td colspan="4"><hr></td>
    </tr>
    <!-- <tr valign="top">
        <td>&nbsp;</td>
        <td>&nbsp;</td>
        <td>Total (excl. {$TAX_CODE})</td>
        {assign var='totalExclGST' value=$payment.payment_total - $payment.payment_gst}
        <td style="text-align: right">(${$totalExclGST|number_format:2:".":","})</td>
    </tr> -->
    <!-- <tr valign="top">
        <td>{if $free}(*){$TAX_CODE} free item.{/if}</td>
        <td>&nbsp;</td>
        <td>{$TAX_CODE}</td>
        <td style="text-align: right">(${$payment.payment_gst|number_format:2:".":","})</td>
    </tr> -->
    {if $payment.payment_surcharge neq '0.00'}
    <!-- <tr valign="top">
        <td>&nbsp;</td>
        <td>&nbsp;</td>
        <td><strong>Credit card surcharge</strong></td>
        <td style="text-align: right"><strong>{$CURRENCY_SYMBOL}{$payment.payment_surcharge|number_format:2:".":","}</strong></td>
    </tr> -->
    {/if}
    <tr valign="top">
        <td>&nbsp;</td>
        <td>&nbsp;</td>
        <td><strong>总价</strong></td>
        <td style="text-align: right"><strong>{$CURRENCY_SYMBOL}{$payment.payment_total|number_format:2:".":","}</strong></td>
    </tr>
    {if $payment.payment_charged_amount neq $payment.payment_total}
    <!-- <tr valign="top">
        <td colspan="4"><hr></td>
    </tr>
    <tr valign="top">
        <td>&nbsp;</td>
        <td>&nbsp;</td>
        <td><strong>Partial payment</strong></td>
        <td style="text-align: right"><strong>{$CURRENCY_SYMBOL}-{$payment.payment_charged_amount|number_format:2:".":","}</strong></td>
    </tr>
    <tr valign="top">
        <td>&nbsp;</td>
        <td>&nbsp;</td>
        <td><strong>Pending payment</strong></td>
        {assign var='pending' value=$payment.payment_total - $payment.payment_charged_amount}
        <td style="text-align: right"><strong>{$CURRENCY_SYMBOL}{$pending|number_format:2:".":","}</strong></td>
    </tr> -->
    {/if}
    <tr valign="top">
        <td colspan="4"><hr></td>
    </tr>
</table>
<br />
<br />
<table width="100%" cellspacing="0" cellpadding="0" border="0">
    <tr>
        <td>
        {if $hasTrial eq 1}
            <b>体验课程信息和条款</b><br>
            {$message}<br><br>
        {/if}
        
        <a href="{$DOMAIN}/terms-and-conditions?utm_source=website&utm_medium=email&utm_campaign=order-confirmation-email">点击这里</a>查看我们的条款和条件。<br><br>
        
        如果您有任何疑问，请致电 {$PHONE} 来咨询我们的客服团队，客服团队服务时间：9:00-18:00<br><br>
        </td>
    </tr>
    <tr>
{/block}